package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.SpecificationValueEntity;
import com.xbongbong.saas.domain.entity.WarehouseOristockEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by xbb on 2019/10/15.
 */
public interface WarehouseOristockDao {

    Integer insert(WarehouseOristockEntity entity);

    SpecificationValueEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    List<WarehouseOristockEntity> findEntitys(@Param("param") Map<String, Object> param);


    void deleteByIdIn(@Param("corpid") String corpid, @Param("idList") List<Integer> idIn);

    Set<Long> getWarehouseIdUnion(@Param("warehouseIdList") Set<Long> warehouseIdList, @Param("corpid") String corpid);
}
